﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Wms;
using nERP.Model;
using nERP.Model.So;
using nERP.Model.Bas;

namespace nERP.ViewModel.Wms.SaleReturnInWarehouseDetailVMs
{
    public partial class SaleReturnInWarehouseDetailTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._SaleReturnInWarehouse")]
        public ExcelPropety SaleReturnInWarehouse_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.SaleReturnInWarehouseId);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._SaleReturnInWarehouseDetailCode")]
        public ExcelPropety SaleReturnInWarehouseDetailCode_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.SaleReturnInWarehouseDetailCode);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._SaleReturn")]
        public ExcelPropety SaleReturn_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.SaleReturnId);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._SaleReturnDetail")]
        public ExcelPropety SaleReturnDetail_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.SaleReturnDetailId);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._Warehouse")]
        public ExcelPropety Warehouse_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.WarehouseId);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._Goods")]
        public ExcelPropety Goods_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.GoodsId);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.GoodsName);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.GoodsSpec);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.GoodsUnit);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._ReturnNumber")]
        public ExcelPropety ReturnNumber_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.ReturnNumber);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.Remark);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.Seq);
        [Display(Name = "_Model._SaleReturnInWarehouseDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.Status);
        //[Display(Name = "_Model._SaleReturnInWarehouseDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._SaleReturnInWarehouseDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._SaleReturnInWarehouseDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._SaleReturnInWarehouseDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._SaleReturnInWarehouseDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouseDetail>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class SaleReturnInWarehouseDetailImportVM : BaseImportVM<SaleReturnInWarehouseDetailTemplateVM, SaleReturnInWarehouseDetail>
    {
            //import

    }

}